package com.lyt.robotocr.http

import com.lyt.robotocr.model.CallNumberModel
import com.lyt.robotocr.model.QueryNumberModel
import okhttp3.MultipartBody
import okhttp3.ResponseBody
import retrofit2.http.Multipart
import retrofit2.http.POST
import retrofit2.http.Part
import retrofit2.http.Query

interface Api {


    @POST("callNumber")
    suspend fun callNumber(@Query("reqId") reqId: String): RespData<CallNumberModel>

    @POST("query/callNumber")
    suspend fun queryNumber(): RespData<QueryNumberModel>

    @Multipart
    @POST("bxmPerson/testFace")
    suspend fun compareFace(@Part file: MultipartBody.Part): ResponseBody
}